<?php
define( 'DS', DIRECTORY_SEPARATOR );
define( 'APP_DIR', 'admin' );
define( 'BONE_ROOT', str_replace(DS.APP_DIR,'', dirname(__FILE__)) );

require( BONE_ROOT.DS.'system'.DS.'tool.php' );
require( BONE_ROOT.DS.'system'.DS.'bone.php' );
require( BONE_ROOT.DS.APP_DIR.DS.'system'.DS.'worker.php' );

$worker = new worker();
$worker->start();
$worker->work();
$worker->stop();
?>